/* -------------------------------------------------------------------------- */
/*                                                                            */
/*    Fichier : SYS_DEP .H                                                    */
/*                                                                            */
/* -------------------------------------------------------------------------- */

#ifndef  __SYS_DEP_H
#define  __SYS_DEP_H

/* -------------------------------------------------------------------------- */
#include <dlfcn.h>
#include  "linuxdef.h"

#define  SYS_MAX_PATH     256
#define  _MAX_FNAME       256
#define  _MAX_DIR         256
#define  _MAX_DRIVE       10

#ifndef FAR
  #define FAR far
#endif
/* -------------------------------------------------------------------------- */

#define  CONFIG_FILE  NULL

typedef	int	BOOL;
#define GALSSINF_DLL_NAME "/usr/local/galss/libgalinlux.so"

    typedef void *               HMODULE;                   																				
#   define HANDLE			           HMODULE                    																				
#   define DL_OPEN_FLAGS			   /*RTLD_LAZY*/RTLD_NOW|RTLD_LOCAL
#   define ChargerLibrairie(x)   dlopen(x,DL_OPEN_FLAGS)
#   define AdresseFonction(x,y)  dlsym(x,y)
#   define DechargerLibrairie(x) dlclose(x)

/*----------------------------------------------------------------------------*/
                    

#define  FNAME_JOURNAL  "cps-jour.txt"

#define  FNAME_DONNEES  "cps-info.txt"

#define    FNAME_TRACE  "cps-trac.txt"

#define     FNAME_DIAG  "cps-diag.txt"



/* -------------------------------------------------------------------------- */


/* caractere dependant du systeme */

#define E_AIGUE         "é"

#define E_GRAVE         "è"

#define E_CIRCONFLEXE   "ê"

#define A_ACCENT        "à"

#define I_CIRCONFLEXE   "î"

#define O_NUMERO        "°"

#define C_CEDILLE       "ç"

#define O_CIRCONFLEXE   "ô"

#define A_LA_LIGNE		"\n"

#endif  /* ifndef __SYS_DEP_H */

/* -------------------- Fin de fichier : SYS_DEP .H   ----------------------- */

